package com.boyan.order.feign;

import com.boyan.pojo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value="service-login",url = "127.0.0.1:8080/login")
public interface LoginFeignClient {

    @PostMapping
    Result login(@RequestBody User user);
}
